package com.guoning.office_system.mapper;

import com.guoning.office_system.model.WorkOrder;
import com.guoning.office_system.vo.Criteria;
import com.guoning.office_system.vo.PageBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("WorkOrderMapper")
public interface WorkOrderMapper {
    List<WorkOrder> selectByQueryCondition(Criteria criteria);

    Long selectCountByQueryCondition(Criteria criteria);

    int updateEnableStatus(List<WorkOrder> workOrderList);

    List<Map> getEnableStatusItemAndCount(Long userId);

    int updateForDeleteById(Long id);

    int deleteByPrimaryKey(Long id);

    int insert(WorkOrder record);

    int insertSelective(WorkOrder record);

    WorkOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WorkOrder record);

    int updateByPrimaryKeyWithBLOBs(WorkOrder record);

    int updateByPrimaryKey(WorkOrder record);
}